package wiki.zimo.certificate_manage.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;

import javax.persistence.*;
import java.util.Objects;
/**
 *
 * @author 子墨
 * @date 2018/10/9 17:01
 * @describe 获奖级别信息实体类
 */
@Entity
@Table(name = "prize_level", schema = "certificate", catalog = "")
public class PrizeLevel {
    @Excel(name = "id" ,orderNum = "0")
    private String id;
    @Excel(name = "获奖级别" ,orderNum = "1")
    private String prizeLevel;

    public PrizeLevel() {
    }

    @Id
    @Column(name = "Id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "prize_level")
    public String getPrizeLevel() {
        return prizeLevel;
    }

    public void setPrizeLevel(String prizeLevel) {
        this.prizeLevel = prizeLevel;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PrizeLevel that = (PrizeLevel) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(prizeLevel, that.prizeLevel);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, prizeLevel);
    }

    @Override
    public String toString() {
        return "PrizeLevel{" +
                "id='" + id + '\'' +
                ", prizeLevel='" + prizeLevel + '\'' +
                '}';
    }
}
